package com.cjy.service;

import com.cjy.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserService {

    User checkUser(String username,String password);

    String showUserDescription();

    User findUserById(Long id);

    User updateUser(Long id,User user);

    String checkAcount(String account);

    String checkEmail(String email);

    String sendCheckNumber(String email);

    String register(User user, String checkNumber);

    Page<User> listUser(Pageable pageable);

    User userSave(User user);

    User getUser(Long id);

    void deleteUser(Long id);
}
